package org.ibase4j.model.weixin;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import org.ibase4j.core.base.AppBaseModel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 微信用户与公众号绑定信息
 * </p>
 *
 * @author zoyee
 * @since 2018-08-08
 */
@ApiModel("微信用户与公众号绑定信息")
@TableName("weixin_user_binds")
@SuppressWarnings("serial")
public class WeixinUserBinds extends AppBaseModel {

    @ApiModelProperty(value = "UnionID")
	@TableField("union_id")
	private String unionId;
	
    @ApiModelProperty(value = "公众号AppID")
	@TableField("app_id")
	private String appId;
	
    @ApiModelProperty(value = "OpenID")
	@TableField("open_id")
	private String openId;
	
    @ApiModelProperty(value = "是否关注（1关注；0取关）")
	private Integer subscribe;
	
    @ApiModelProperty(value = "关注时间")
	@TableField("subscribe_time")
	private Date subscribeTime;
	
    @ApiModelProperty(value = "昵称")
	@TableField("local_nickname")
	private String localNickname;
	
    @ApiModelProperty(value = "自定义头像")
	@TableField("local_img_url")
	private String localImgUrl;
	
    @ApiModelProperty(value = "当前步骤")
	private Integer setp;
	
    @ApiModelProperty(value = "优惠券")
	private String coupon;
	
    @ApiModelProperty(value = "介绍人")
	private Integer affiliate;
	
    @ApiModelProperty(value = " 来源类型：1扫码；2商城链接;3 H5小游戏")
	@TableField("from_type")
	private Integer fromType;
	
    @ApiModelProperty(value = "移动访问设备")
	private Integer device;
	
    @ApiModelProperty(value = "状态（1正常；2暂停服务；3终止服务）")
	private Integer status;
	
    @ApiModelProperty(value = "停止服务原因")
	private String reason;
	


	public String getUnionId() {
		return unionId;
	}

	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public Integer getSubscribe() {
		return subscribe;
	}

	public void setSubscribe(Integer subscribe) {
		this.subscribe = subscribe;
	}

	public Date getSubscribeTime() {
		return subscribeTime;
	}

	public void setSubscribeTime(Date subscribeTime) {
		this.subscribeTime = subscribeTime;
	}

	public String getLocalNickname() {
		return localNickname;
	}

	public void setLocalNickname(String localNickname) {
		this.localNickname = localNickname;
	}

	public String getLocalImgUrl() {
		return localImgUrl;
	}

	public void setLocalImgUrl(String localImgUrl) {
		this.localImgUrl = localImgUrl;
	}

	public Integer getSetp() {
		return setp;
	}

	public void setSetp(Integer setp) {
		this.setp = setp;
	}

	public String getCoupon() {
		return coupon;
	}

	public void setCoupon(String coupon) {
		this.coupon = coupon;
	}

	public Integer getAffiliate() {
		return affiliate;
	}

	public void setAffiliate(Integer affiliate) {
		this.affiliate = affiliate;
	}

	public Integer getFromType() {
		return fromType;
	}

	public void setFromType(Integer fromType) {
		this.fromType = fromType;
	}

	public Integer getDevice() {
		return device;
	}

	public void setDevice(Integer device) {
		this.device = device;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

}